package com.demoproject.entity;

import java.sql.Date;

public class NewUser {

    private Long id; // id 主键 用户id
    private String username; // username 用户名
    private String password; // password 密码
    private Integer gender;  // gender 性别
//    private Date birthday; // birthday 出生年月

    private static final Long serialVersionUID = 1L; // serial version 版本号

    public NewUser() {
    }

    public NewUser(Long id, String username, String password, Integer gender, Date birthday) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.gender = gender;
//        this.birthday = birthday;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

//    public Date getBirthday() {
//        return birthday;
//    }
//
//    public void setBirthday(Date birthday) {
//        this.birthday = birthday;
//    }

    public void show() {
        System.out.println("User" + id + "名称:" + username);
    }
}
